Class PopupMenuImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.ui.impl.PopupMenuImpl
All Implemented Interfaces:
IPCObject, PopupMenu

public class PopupMenuImpl extends IPCObjectImpl implements PopupMenu
Information provided by the PKI file:

    \class PopupMenu
    
    \brief PopupMenu is the popup menu instantiated from the PopupMenuBar object.
    
    \remark The built-in menus Activity Wizard, Multiuser, IPC, and the
    seperator can only be manipulated by name. These menus will not provide
    a UUID or PopupMenuItem class representation. Only items added via the IPC
    have a UUID and are a derivative of the PopupMenuItem class.
    
    \example appWindow().getPopupMenuBar().getFilePopupPopupMenu()
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • count

      public int count()
      Information provided by the PKI file:
      
          \brief Returns the number of menu items in this menu.
          
          \return int, the number of menu items in this menu.
          
              
      Specified by:
      count in interface PopupMenu
      Returns:
      int Returns a int
    • getPopupMenuItemAt

      public PopupMenuItem getPopupMenuItemAt(int index)
      Information provided by the PKI file:
      
          \brief Returns the menu item at the specified index.
          
          \param index, the index of the menu item of interest.
          
          \return PopupMenuItem, the PopupMenuItem object at the specified index.
          
              
      Specified by:
      getPopupMenuItemAt in interface PopupMenu
      Parameters:
      index - Takes in a parameter of index
      Returns:
      PopupMenuItem Returns a PopupMenuItem
    • getPopupMenuItemByUuid

      public PopupMenuItem getPopupMenuItemByUuid(UUID id)
      Information provided by the PKI file:
      
          \brief Returns the menu item with the specified UUID.
          
          \param id, the UUID of the menu item of interest.
          
          \return PopupMenuItem, the PopupMenuItem object with the specified UUID.
          
              
      Specified by:
      getPopupMenuItemByUuid in interface PopupMenu
      Parameters:
      id - Takes in a parameter of id
      Returns:
      PopupMenuItem Returns a PopupMenuItem
    • getPopupMenuItemByName

      public PopupMenuItem getPopupMenuItemByName(String name)
      Information provided by the PKI file:
      
          \brief Returns the menu item with the specified name.
          
          \param name, the name of the menu item of interest.
          
          \return PopupMenuItem, the PopupMenuItem object with the specified name.
          
              
      Specified by:
      getPopupMenuItemByName in interface PopupMenu
      Parameters:
      name - Takes in a parameter of name
      Returns:
      PopupMenuItem Returns a PopupMenuItem
    • getPopupMenuItemUuid

      public UUID getPopupMenuItemUuid(String name)
      Information provided by the PKI file:
      
          \brief Returns the UUID of the menu item with the specified name.
          
          \param name, the name of the menu item of interest.
          
          \return uuid, the UUID of the menu item with the specified name.
          
              
      Specified by:
      getPopupMenuItemUuid in interface PopupMenu
      Parameters:
      name - Takes in a parameter of name
      Returns:
      UUID Returns a UUID
    • setItemVisibleUuid

      public void setItemVisibleUuid(UUID id, boolean bVisible)
      Information provided by the PKI file:
      
          \brief Changes the visibility of the item with the specified UUID.
          
          \param id, the UUID of the menu item of interest.
          \param bVisibile, true to show the menu item, false to hide it.
          
              
      Specified by:
      setItemVisibleUuid in interface PopupMenu
      Parameters:
      id - Takes in a parameter of id
      bVisible - Takes in a parameter of bVisible
    • setItemEnabledUuid

      public void setItemEnabledUuid(UUID id, boolean bEnabled)
      Information provided by the PKI file:
      
          \brief Enables or disables input events to the menu item with the specified UUID.
          
          \param id, the UUID of the menu item of interest.
          \param bEnabled, true to enable input events to the menu item, false to disable it.
          
              
      Specified by:
      setItemEnabledUuid in interface PopupMenu
      Parameters:
      id - Takes in a parameter of id
      bEnabled - Takes in a parameter of bEnabled
    • removeItemUuid

      public void removeItemUuid(UUID id)
      Information provided by the PKI file:
      
          \brief Removes the menu item with the specified UUID.
          
          \param id, the UUID of the menu item of interest.
          
              
      Specified by:
      removeItemUuid in interface PopupMenu
      Parameters:
      id - Takes in a parameter of id
    • insertItem

      public UUID insertItem(String before, String action)
      Information provided by the PKI file:
      
          \brief Inserts an item before the specified item with the specified action.
          
          \param before, the name of the menu item to insert before.
          \param action, the action of the menu item.
          
          \return uuid, the UUID of the menu item that was inserted.
          
              
      Specified by:
      insertItem in interface PopupMenu
      Parameters:
      before - Takes in a parameter of before
      action - Takes in a parameter of action
      Returns:
      UUID Returns a UUID
    • insertItemAfter

      public UUID insertItemAfter(String after, String action)
      Information provided by the PKI file:
      
          \brief Inserts an item after the specified item with the specified action.
          
          \param after, the name of the menu item to insert after.
          \param action, the action of the menu item.
          
          \return uuid, the UUID of the menu item that was inserted.
          
              
      Specified by:
      insertItemAfter in interface PopupMenu
      Parameters:
      after - Takes in a parameter of after
      action - Takes in a parameter of action
      Returns:
      UUID Returns a UUID
    • insertSeparator

      public UUID insertSeparator(String before, String name)
      Information provided by the PKI file:
      
          \brief Inserts a separator before the specified item with the specified name.
          
          \param before, the name of the menu item to insert before.
          \param name, the name of the separator; not displayed but can be used to find it later.
          
          \return uuid, the UUID of the menu item that was inserted.
          
              
      Specified by:
      insertSeparator in interface PopupMenu
      Parameters:
      before - Takes in a parameter of before
      name - Takes in a parameter of name
      Returns:
      UUID Returns a UUID
    • insertSeparatorAfter

      public UUID insertSeparatorAfter(String after, String name)
      Information provided by the PKI file:
      
          \brief Inserts a separator after the specified item with the specified name.
          
          \param after, the name of the menu item to insert after.
          \param name, the name of the separator; not displayed but can be used to find it later.
          
          \return uuid, the UUID of the menu item that was inserted.
          
              
      Specified by:
      insertSeparatorAfter in interface PopupMenu
      Parameters:
      after - Takes in a parameter of after
      name - Takes in a parameter of name
      Returns:
      UUID Returns a UUID
    • removeItem

      public void removeItem(String name)
      Information provided by the PKI file:
      
          \brief Removes the specified menu item.
          
          \param name, the name of the menu item.
          
              
      Specified by:
      removeItem in interface PopupMenu
      Parameters:
      name - Takes in a parameter of name
    • setItemVisible

      public void setItemVisible(String name, boolean bVisible)
      Information provided by the PKI file:
      
          \brief Shows or hides the specified menu item.
          
          \param name, the name of the menu item.
          \param bVisible, true to show the menu item, false to hide it.
          
              
      Specified by:
      setItemVisible in interface PopupMenu
      Parameters:
      name - Takes in a parameter of name
      bVisible - Takes in a parameter of bVisible
    • setItemEnabled

      public void setItemEnabled(String name, boolean bEnable)
      Information provided by the PKI file:
      
          \brief Enables or disables the specified menu item.
          
          \param name, the name of the menu item.
          \param bEnable, true to enable the menu item, false to disable it.
          
              
      Specified by:
      setItemEnabled in interface PopupMenu
      Parameters:
      name - Takes in a parameter of name
      bEnable - Takes in a parameter of bEnable
    • setItemObjectEnabled

      public void setItemObjectEnabled(String name, boolean bEnable)
      Information provided by the PKI file:
      
          \brief Enables or disables the specified menu item using object name.
          
          \param name, the name of the menu item.
          \param bEnable, true to enable the menu item, false to disable it.
          
              
      Specified by:
      setItemObjectEnabled in interface PopupMenu
      Parameters:
      name - Takes in a parameter of name
      bEnable - Takes in a parameter of bEnable
    • insertItemWithName

      public UUID insertItemWithName(String before, String action, String name)
      Information provided by the PKI file:
      
          \brief Inserts an item before the specified item with the specified action.
          
          \param before, the name of the menu item to insert before.
          \param action, the action of the menu item.
          \param name, object name assigned to the action
          
          \return uuid, the UUID of the menu item that was inserted.
          
              
      Specified by:
      insertItemWithName in interface PopupMenu
      Parameters:
      before - Takes in a parameter of before
      action - Takes in a parameter of action
      name - Takes in a parameter of name
      Returns:
      UUID Returns a UUID
    • insertItemWithNameAfter

      public UUID insertItemWithNameAfter(String after, String action, String name)
      Information provided by the PKI file:
      
          \brief Inserts an item after the specified item with the specified action.
          
          \param after, the name of the menu item to insert after.
          \param action, the action of the menu item.
          \param name, object name assigned to the action
          
          \return uuid, the UUID of the menu item that was inserted.
          
              
      Specified by:
      insertItemWithNameAfter in interface PopupMenu
      Parameters:
      after - Takes in a parameter of after
      action - Takes in a parameter of action
      name - Takes in a parameter of name
      Returns:
      UUID Returns a UUID